echo " Installing Python 2.7 and Django."
echo " Please be patient..."
echo -e "\e[00;36m-------------------------------------------------------------------------------\e[00m"
echo ""

# Set-up Python and SQLite
tce-load -wi python.tcz
tce-load -wi python-distribute.tcz
tce-load -wi curl.tcz
tce-load -wi expat2.tcz
tce-load -wi Xlibs.tcz
tce-load -wi openssl-1.0.0.tcz
tce-load -wi sqlite3.tcz

#Create development folder (in order to add it later to the list of backed up location)
mkdir /home/tc/pydocs

#Install Django
cd /home/tc
wget https://www.djangoproject.com/download/1.5.4/tarball/
tar xzvf Django-1.5.4.tar.gz
cd Django-1.5.4
sudo python setup.py install

# Setting up persistence
echo "usr/local/lib/python2.7/site-packages/django" >> /opt/.filetool.lst
echo "home/tc/pydocs" >> /opt/.filetool.lst
echo "usr/local/bin" >> /opt/.filetool.lst

# Backup
filetool.sh -b >> /dev/null